<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>

<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>


<html:html>
<head>	
	<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/help/help.css" />
	<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/css/stkissue2.css" />	
</head>


<body><br />
<div id="wrapper">
	<!-- 
		<div id="header"><img src="images/kiuchilogo.png" width="305" height="80" /></div>
	 -->	 
	<div id="menu">
	    <ul id="nav">

	    </ul>
	    	
	  </div>
	  
	<div id="content">
		<div id="menuNav"><a href='<%=request.getContextPath() %>/Login.do?mode=check'>หน้าหลัก</a> 
		>> รายงาน  >> รายงานซื้อของ/เบิกใช้ประจำเดือน   </div><br />
			
		
		<div>
			
			<form action="/ittl/report/reportReceiveMaterial.do?mode=receiveAll" method="post" name="formSearch" target="_blank">
				
				<div id="userPw01">
					<fieldset>
						<legend><b>รายงาน: รับของจาก Store ประจำเดือน (ของซื้อ/ของเบิก)</b></legend>
					   	<center> 
					   	<table border="1" >
							<tr>
								<td >เดือน</label></td>
								<td >
									<select name="monthId" size="4" >
										<option value="01">มกราคม</option>
										<option value="02">กุมภาพันธ์</option>
										<option value="03">มีนาคม</option>
										<option value="04">เมษายน</option>
										<option value="05">พฤษภาคม</option>
										<option value="06">มิถุนายน</option>
										<option value="07">กรกฎาคม</option>
										<option value="08">สิงหาคม</option>
										<option value="09">กันยายน</option>
										<option value="10" selected="selected">ตุลาคม</option>
										<option value="11">พฤศจิกายน</option>
										<option value="12">ธันวาคม</option>												
									</select></td>
								<td>ปี</td>
								<td><select name="yearId" size="4">
										<option value="2010" selected="selected">2553</option>																				
										<option value="2011">2554</option>
										<option value="2012">2555</option>																				
										<option value="2013">2556</option>														
									</select>
								</td>
								<td><input type="submit" value="ดูรายงาน"></td>				
							</tr>	
							<tr>
								<td >TTL-2</td> 
								<td colspan="3">
									<input type="checkbox" name="selectedItems" value="010">010
									<input type="checkbox" name="selectedItems" value="011">011
									<input type="checkbox" name="selectedItems" value="012">012
									<input type="checkbox" name="selectedItems" value="040">040
									<input type="checkbox" name="selectedItems" value="041">041
									<input type="checkbox" name="selectedItems" value="042">042
									<input type="checkbox" name="selectedItems" value="060">060
									<input type="checkbox" name="selectedItems" value="061">061
									<input type="checkbox" name="selectedItems" value="062">062									
									<input type="checkbox" name="selectedItems" value="063">063
								</td>							
							</tr>							
							<tr>
								<td >SP</td> 
								<td colspan="3">
									<input type="checkbox" name="selectedItems" value="100">100
								</td>							
							</tr>							
							<tr>
								<td >FW</td> 
								<td colspan="3">
									<input type="checkbox" name="selectedItems" value="200">200
									<input type="checkbox" name="selectedItems" value="210">210
									<input type="checkbox" name="selectedItems" value="211">211
									<input type="checkbox" name="selectedItems" value="220">220
									<input type="checkbox" name="selectedItems" value="280">280
								</td>							
							</tr>
							<tr>
								<td >Dyeing</td> 
								<td colspan="3">
									<input type="checkbox" name="selectedItems" value="300">300
									<input type="checkbox" name="selectedItems" value="310">310
									<input type="checkbox" name="selectedItems" value="320">320
									<input type="checkbox" name="selectedItems" value="330">330
									<input type="checkbox" name="selectedItems" value="340">340
									<input type="checkbox" name="selectedItems" value="350">350																		
									<input type="checkbox" name="selectedItems" value="360">360
								</td>							
							</tr>	
							<tr>
								<td >PM</td> 
								<td colspan="3">
									<input type="checkbox" name="selectedItems" value="400">400
									<input type="checkbox" name="selectedItems" value="410">410
									<input type="checkbox" name="selectedItems" value="421">421
									<input type="checkbox" name="selectedItems" value="422">422
									<input type="checkbox" name="selectedItems" value="423">423
									<input type="checkbox" name="selectedItems" value="430">430
									<input type="checkbox" name="selectedItems" value="440">440
									<input type="checkbox" name="selectedItems" value="450">450																											
								</td>							
							</tr>
							<tr>
								<td >Store</td> 
								<td colspan="3">
									<input type="checkbox" name="selectedItems" value="500">500
									<input type="checkbox" name="selectedItems" value="510">510
									<input type="checkbox" name="selectedItems" value="520">520
									<input type="checkbox" name="selectedItems" value="530">530
									<input type="checkbox" name="selectedItems" value="540">540
									<input type="checkbox" name="selectedItems" value="550">550
									<input type="checkbox" name="selectedItems" value="560">560
									<input type="checkbox" name="selectedItems" value="569">569																											
								</td>							
							</tr>
							<tr>
								<td >GA</td> 
								<td colspan="3">
									<input type="checkbox" name="selectedItems" value="600">600
									<input type="checkbox" name="selectedItems" value="610">610
									<input type="checkbox" name="selectedItems" value="620">620
								</td>							
							</tr>
							<tr>
								<td >YD</td> 
								<td colspan="3">
									<input type="checkbox" name="selectedItems" value="700">700
								</td>
							</tr>	
							<tr>
								<td >SW</td> 
								<td colspan="3">
									<input type="checkbox" name="selectedItems" value="800">800
								</td>
							</tr>
							<tr>
								<td >CC&NP</td> 
								<td colspan="3">
									<input type="checkbox" name="selectedItems" value="910">910
									<input type="checkbox" name="selectedItems" value="920">920
								</td>							
							</tr>								 			 			 			 				 							
						</table>
						</center>
				     </fieldset>					     
				</div>												
			</form>	
		</div>	 			
		<div>
			
			<form action="/ittl/report/reportReceiveMaterial.do?mode=receiveByDepartment" method="post" name="formSearch" target="_blank">
				
				<div id="userPw01">
					<fieldset>
						<legend><b>รายงาน แยกตามแผนกและหน่วยงบ</b></legend>
					   	<center> 
					   	<table border="1" >
							<tr>
								<td >เดือน</label></td>
								<td >
									<select name="monthId" size="4" >
										<option value="01">มกราคม</option>
										<option value="02">กุมภาพันธ์</option>
										<option value="03">มีนาคม</option>
										<option value="04">เมษายน</option>
										<option value="05">พฤษภาคม</option>
										<option value="06">มิถุนายน</option>
										<option value="07">กรกฎาคม</option>
										<option value="08">สิงหาคม</option>
										<option value="09">กันยายน</option>
										<option value="10" selected="selected">ตุลาคม</option>
										<option value="11">พฤศจิกายน</option>
										<option value="12">ธันวาคม</option>												
									</select></td>
								<td>ปี</td>
								<td><select name="yearId" size="4">
										<option value="2010" selected="selected">2553</option>																				
										<option value="2011">2554</option>
										<option value="2012">2555</option>																				
										<option value="2013">2556</option>														
									</select>
								</td>
								<td><input type="submit" value="ดูรายงาน"></td>				
							</tr>
							<tr>
								<td >TTL-2</td> 
								<td colspan="3">
									<input type="radio" name="selectedItems" value="010">010
									<input type="radio" name="selectedItems" value="011">011
									<input type="radio" name="selectedItems" value="012">012
									<input type="radio" name="selectedItems" value="040">040
									<input type="radio" name="selectedItems" value="041">041
									<input type="radio" name="selectedItems" value="042">042
									<input type="radio" name="selectedItems" value="060">060
									<input type="radio" name="selectedItems" value="061">061
									<input type="radio" name="selectedItems" value="062">062									
									<input type="radio" name="selectedItems" value="063">063
								</td>							
							</tr>							
							<tr>
								<td >SP</td> 
								<td colspan="3">
									<input type="radio" name="selectedItems" value="100">100
								</td>							
							</tr>							
							<tr>
								<td >FW</td> 
								<td colspan="3">
									<input type="radio" name="selectedItems" value="200">200
									<input type="radio" name="selectedItems" value="210">210
									<input type="radio" name="selectedItems" value="211">211
									<input type="radio" name="selectedItems" value="220">220
									<input type="radio" name="selectedItems" value="280">280
								</td>							
							</tr>
							<tr>
								<td >Dyeing</td> 
								<td colspan="3">
									<input type="radio" name="selectedItems" value="300">300
									<input type="radio" name="selectedItems" value="310">310
									<input type="radio" name="selectedItems" value="320">320
									<input type="radio" name="selectedItems" value="330">330
									<input type="radio" name="selectedItems" value="340">340
									<input type="radio" name="selectedItems" value="350">350																		
									<input type="radio" name="selectedItems" value="360">360
								</td>							
							</tr>	
							<tr>
								<td >PM</td> 
								<td colspan="3">
									<input type="radio" name="selectedItems" value="400">400
									<input type="radio" name="selectedItems" value="410">410
									<input type="radio" name="selectedItems" value="421">421
									<input type="radio" name="selectedItems" value="422">422
									<input type="radio" name="selectedItems" value="423">423
									<input type="radio" name="selectedItems" value="430">430
									<input type="radio" name="selectedItems" value="440">440
									<input type="radio" name="selectedItems" value="450">450																											
								</td>							
							</tr>
							<tr>
								<td >Store</td> 
								<td colspan="3">
									<input type="radio" name="selectedItems" value="500">500
									<input type="radio" name="selectedItems" value="510">510
									<input type="radio" name="selectedItems" value="520">520
									<input type="radio" name="selectedItems" value="530">530
									<input type="radio" name="selectedItems" value="540">540
									<input type="radio" name="selectedItems" value="550">550
									<input type="radio" name="selectedItems" value="560">560
									<input type="radio" name="selectedItems" value="569">569																											
								</td>							
							</tr>
							<tr>
								<td >GA</td> 
								<td colspan="3">
									<input type="radio" name="selectedItems" value="600">600
									<input type="radio" name="selectedItems" value="610">610
									<input type="radio" name="selectedItems" value="620">620
								</td>							
							</tr>
							<tr>
								<td >YD</td> 
								<td colspan="3">
									<input type="radio" name="selectedItems" value="700">700
								</td>
							</tr>	
							<tr>
								<td >SW</td> 
								<td colspan="3">
									<input type="radio" name="selectedItems" value="800">800
								</td>
							</tr>
							<tr>
								<td >CC&NP</td> 
								<td colspan="3">
									<input type="radio" name="selectedItems" value="910">910
									<input type="radio" name="selectedItems" value="920">920
								</td>							
							</tr>																																										 			 			 			 				 							
						</table>
						</center>
				     </fieldset>					     
				</div>												
			</form>	
		</div>		
								
  	</div>
  		  
</div>

<input type="hidden" value="${monthFind }" id="monthFindId">
<input type="hidden" value="${yearFind }" id="yearFindId">
<script type="text/javascript">

	var mm = document.getElementById("monthFindId").value;		
	document.formSearch.monthFind[mm-1].selected=true;		
	document.getElementById("mm").innerHTML = document.formSearch.monthFind[mm-1].text;

	var yy = document.getElementById("yearFindId").value;		
	var dd = document.formSearch.yearFind.selectedIndex;
	var ss = document.formSearch.yearFind[dd].text; 			
	document.getElementById("yyyy").innerHTML = ss;
	 	
</script>



</body>

</html:html>